<div class="container">
    <div class="row">
        <div class="col-sm-10">
        <?php
        $this->widget('zii.widgets.grid.CGridView', array(
            'dataProvider' => new CArrayDataProvider($workers),
            'columns' => array(
                array(
                    'name' => 'ID',
                    'header' => '#',
                    'value' => 'CHtml::encode($data["id"])',
                    'htmlOptions' => array('style' => 'width: 50px; text-align: center;', 'class' => 'zzz'),
                ),
                array(
                    'name' => 'FirstName',
                    'header' => 'Imię',
                    'type' => 'raw',
                    'value' => 'CHtml::encode($data["imie"])',
                    'htmlOptions' => array('style' => 'width: 100px; text-align: center;', 'class' => 'zzz'),
                ),
                array(
                    'name' => 'LastName',
                    'header' => 'Nazwisko',
                    'type' => 'raw',
                    'value' => 'CHtml::encode($data["nazwisko"])',
                    'htmlOptions' => array('style' => 'width: 100px; text-align: center;', 'class' => 'zzz'),
                ),
                array(
                    'name' => 'Login',
                    'header' => 'Login',
                    'type' => 'raw',
                    'value' => 'CHtml::encode($data["login"])',
                    'htmlOptions' => array('style' => 'width: 100px; text-align: center;', 'class' => 'zzz'),
                ),
                array(
                    'name' => 'id_roli',
                    'header' => 'Rola',
                    'type' => 'raw',
                    'value' => 'CHtml::encode($data["id_roli"])',
                    'htmlOptions' => array('style' => 'width: 50px; text-align: center;', 'class' => 'zzz'),
                ),
                array(
                    'class' => 'CButtonColumn',
                    'template' => '{update}',
                    'buttons' => array(
                        'update' => array(
                            'label' => '<i class="fa fa-pencil fa-fw"></i>',
                            'url' => 'Yii::app()->createUrl("admin/editworker", array("id"=>$data["id"]))',
                            'imageUrl' => false,
                        ),
                    ),
                ),
            )
        ));
        ?>
        </div>
    </div>
</div>

